﻿@model LeadMaster.ViewModels.ViewModelFinancials

@{
    ViewBag.Title = "FilteredList";
}

<legend>Filtered On @ViewBag.FinanceActionFilter</legend>

<table style="width: 1400px;">
    <tr>
        <th>
            Campaign
        </th>
        <th>
            Introducer
        </th>
        <th>
            Current Status
        </th>
        <th>
            Financial Status
        </th>
        <th>
            Last Action Date
        </th>
        <th>
            Fee
        </th>
        <th></th>
    </tr>

@foreach (var item in Model.ListEarnt)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Earnt.LeadStatus.Lead.Sector.Sector)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Earnt.LeadStatus.CallCentre.Contact1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Earnt.LeadStatus.LeadFlag.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FinanceType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Earnt.DateUpdated)
        </td>
        <td>
            @item.Earnt.Description £@item.Earnt.Fee
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.Earnt.EarntID }) |
            @Html.ActionLink("Details", "Details", new { id = item.Earnt.EarntID }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.Earnt.EarntID })
        </td>
    </tr>
}

</table>
